package com.gcxy.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gcxy.conf.result.PageDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

@Data
public class AccountInfoDto extends PageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "account", type = IdType.ASSIGN_ID)
    private String account;

    private String accName;

    private String password;

    @Pattern(regexp = "^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(17[0135678])|(18[1-9]))\\d{8}$", message = "手机号格式错误")
    private String accPhone;

    @ApiModelProperty(value = "是否启用(1:启用，0:停用)")
    private Integer isEnable;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
